package com.gzucm.Scholarship;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.ApplicationContext;
import org.springframework.core.env.Environment;

@SpringBootApplication
@EnableConfigurationProperties
public class ScholarshipApplication {

    public static void main(String[] args) {
        ApplicationContext ap = SpringApplication.run(ScholarshipApplication.class, args);
        Environment env = ap.getEnvironment();
        System.out.println("-----------------------------------------------------------------------\n");
        System.out.println("      ScholarshipApplication is running");
        System.out.println("      Project Start Address    : http://localhost:" + env.getProperty("server.port"));
        System.out.println("      API Interface Document   : http://localhost:" + env.getProperty("server.port") + "/swagger-ui.html");
        System.out.println("\n-----------------------------------------------------------------------");
    }

}
